import { useSelector, useDispatch } from 'react-redux';
import type { TypedUseSelectorHook } from 'react-redux';
import type { RootState } from '../store';

// 导出带有类型的selector钩子
const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;

export {
    useAppSelector,
    useDispatch
}